home *** CD-ROM | disk | FTP | other *** search
- PXFOPEN(3F) Last changed: 1-6-98
-
-
- NNAAMMEE
- PPXXFFOOPPEENN - Provides a Fortran interface to the ooppeenn(2) system call
-
- SSYYNNOOPPSSIISS
- IINNTTEEGGEERR _i_l_e_n,, _i_o_p_e_n_f_l_a_g,, _i_m_o_d_e,, _i_f_i_l_d_e_s,, _i_e_r_r_o_r
- CCHHAARRAACCTTEERR*_n _p_a_t_h
- CCAALLLL PPXXFFOOPPEENN((_p_a_t_h,, _i_l_e_n,, _i_o_p_e_n_f_l_a_g,, _i_m_o_d_e,, _i_f_i_l_d_e_s,, _i_e_r_r_o_r))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- IEEE standard interface for FORTRAN 77
-
- DDEESSCCRRIIPPTTIIOONN
- On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
- default when compiling programs with the MIPSpro 7 Fortran 90 compiler
- or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
- 7.2 F77 compiler.
-
- The routine PPXXFFOOPPEENN provides a subset of the functionality of the
- ooppeenn(2) system call.
-
- The _p_a_t_h argument identifies the file to be opened. If PPXXFFOOPPEENN
- successfully opens the file, the file descriptor is returned in the
- argument _i_f_i_l_d_e_s, and _i_e_r_r_o_r is set to zero. If the file cannot be
- opened, _i_e_r_r_o_r is set to the error value.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX, all arguments must be of default kind
- unless documented otherwise. On UNICOS and UNICOS/mk, default kind is
- KKIINNDD==88 for integer, real, complex, and logical arguments; on IRIX, the
- default kind is KKIINNDD==44.
-
- The following is a list of arguments for this routine:
-
- _p_a_t_h An input character variable or array element containing the
- name of the file to be opened.
-
- _i_l_e_n An input integer variable containing the length of _p_a_t_h in
- characters. If _i_l_e_n is zero, the trailing blanks are
- removed.
-
- _i_o_p_e_n_f_l_a_g An input integer variable containing the status flags. See
- the ooppeenn(2) man page for more detail. The value for this
- variable may be obtained through the use of PPXXFFCCOONNSSTT(3F) or
- IIPPXXFFCCOONNSSTT. The following values are currently supported for
- _i_o_p_e_n_f_l_a_g:
-
- * OO__RRDDOONNLLYY
-
- * OO__WWRROONNLLYY
-
- * OO__RRDDWWRR
-
- * OO__RRAAWW*
-
- * OO__LLDDRRAAWW*
-
- * OO__NNDDEELLAAYY
-
- * OO__NNOONNBBLLOOCCKK
-
- * OO__NNOOCCTTTTYY
-
- * OO__BBIIGG*
-
- * OO__AAPPPPEENNDD
-
- * OO__CCRREEAATT
-
- * OO__TTRRUUNNCC
-
- * OO__EEXXCCLL
-
- * OO__PPLLAACCEE*
-
- * OO__RREESSTTAARRTT*
-
- * OO__SSSSDD*
-
- * OO__SSYYNNCC
-
- * OO__WWEELLLLFFOORRMMEEDD*
-
- * = UNICOS and UNICOS/mk systems only.
-
- The integer values may be combined through the use of a
- bitwise inclusive OORR function.
-
- _i_m_o_d_e An input integer variable, denoting the file access
- permission. The value for this variable may be retrieved
- through the use of PPXXFFCCOONNSSTT or IIPPXXFFCCOONNSSTT. The following
- values are currently supported for _i_m_o_d_e:
-
- UUSSEERR RREEAADD permissions bit: SS__IIRRUUSSRR
- WWRRIITTEE permissions bit: SS__IIWWUUSSRR
- SSEEAARRCCHH//EEXXEECCUUTTEE permissions bit: SS__IIXXUUSSRR
- Inclusive OORR of RREEAADD//WWRRIITTEE//EEXXEECCUUTTEE: SS__IIRRWWXXUU
-
- GGRROOUUPP RREEAADD permissions bit: SS__IIRRGGRRPP
- WWRRIITTEE permissions bit: SS__IIWWGGRRPP
- SSEEAARRCCHH//EEXXEECCUUTTEE permissions bit: SS__IIXXGGRRPP
- Inclusive OORR of RREEAADD//WWRRIITTEE//EEXXEECCUUTTEE: SS__IIRRWWXXGG
-
- OOTTHHEERR RREEAADD permissions bit: SS__IIRROOTTHH
- WWRRIITTEE permissions bit: SS__IIWWOOTTHH
- SSEEAARRCCHH//EEXXEECCUUTTEE permissions bit: SS__IIXXOOTTHH
- Inclusive OORR of RREEAADD//WWRRIITTEE//EEXXEECCUUTTEE: SS__IIRRWWXXOO
-
- SSEETTIIDD Set user IIDD on execution: SS__IISSUUIIDD
- Set group IIDD on execution: SS__IISSGGIIDD
-
- The integer values may be combined through the use
- of a bitwise inclusive OORR function.
-
- _i_f_i_l_d_e_s An output integer variable. If the ooppeenn system call was
- successful, _i_f_i_l_d_e_s will be set to the file descriptor.
-
- _i_e_r_r_o_r An output integer variable containing the status:
-
- 0 If PPXXFFOOPPEENN was successful (the ooppeenn(2) succeeded)
-
- _e_r_r_n_o If the ooppeenn(2) system call failed
-
- EEIINNVVAALL If _i_l_e_n is less than 0 or _i_l_e_n is greater than
- LLEENN((_p_a_t_h))
-
- NNOOTTEESS
- PPXXFFOOPPEENN does not provide a way to specify the _c_b_i_t_s or _c_b_l_k_s
- parameters to ooppeenn(2).
-
- SSEEEE AALLSSOO
- ooppeenn(2)
-
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
- 2165, for the printed version of this man page.
-
-